package com.sms.graduate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sms.graduate.entity.SmsLeave;

import java.util.List;


public interface SmsLeaveService extends IService<SmsLeave> {

    /**
     * 请假申请
     * @return
     */
    Boolean addApply(SmsLeave smsLeave);

    /**
     * 查看请假申请
     * @param userCode
     * @return
     */
    List<SmsLeave> selectLeaveApply(String userCode);

    /**
     * 批准请假
     * @return
     */
    Boolean passApply(Integer id);

    /**
     * 驳回请假
     * @return
     */
    Boolean rejectApply(Integer id,String reject);

}

